﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.97.5346.24640"?>
<regions>
  <settings>
    <identity>
      <id>5ab00e81-beea-4f36-a37f-3e37937650e8</id>
      <revision>7</revision>
    </identity>
    <calculation>
      <precision>6</precision>
      <exponentialThreshold>9</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="39" right="39" top="39" bottom="39" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependences>
      <assembly name="SMath Studio Desktop" version="0.97.5346.24640" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Text Region" version="1.10.5346.31409" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Special Functions" version="1.11.5346.31403" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Math Region" version="0.97.5346.24640" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="X-Y Plot Region (Chart2DLib)" version="0.1.5151.38078" guid="c12231ec-4873-43c1-a7d0-a167ebd17066" />
      <assembly name="Plot Region" version="1.9.5346.32570" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependences>
  </settings>
  <region id="0" left="27" top="0" width="361" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Incremental analysis procedure</p>
    </text>
  </region>
  <region id="1" left="27" top="36" width="282" height="67" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <description active="true" position="Top" lang="eng">
        <p>SineIntegral</p>
      </description>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">Si</e>
        <e type="operand">1</e>
        <e type="operator" args="1">-</e>
        <e type="bracket">(</e>
        <e type="operand">n</e>
        <e type="operator" args="2">^</e>
        <e type="operand">x</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">^</e>
        <e type="operator" args="2">*</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">n</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operator" args="1">!</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">/</e>
        <e type="bracket">(</e>
        <e type="operand">n</e>
        <e type="operand">0</e>
        <e type="operand">70</e>
        <e type="function" preserve="true" args="4">sum</e>
        <e type="function" preserve="true" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="2" left="315" top="54" width="430" height="72" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="eng">
      <p>This particular Si(x) fails both operators[Derivative/Integrate], maybe same to generalisedpower series ? For applying "Incremental Analysis",isolate the components respectively.</p>
    </text>
  </region>
  <region id="3" left="27" top="126" width="237" height="50" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operator" args="2">^</e>
        <e type="operator" args="2">+</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">User function</e>
        <e type="operator" args="2">≡</e>
      </input>
    </math>
  </region>
  <region id="4" left="27" top="189" width="655" height="165" border="true" color="#000000" bgColor="#ffffe1" fontSize="10">
    <math>
      <description active="true" position="Top" lang="eng">
        <p>Algo style Memo formula of incremental analysis of this demo example </p>
      </description>
      <input>
        <e type="operand">h</e>
        <e type="operand">0.00001</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">increment</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D1</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="operand">4</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="1">-</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">1rst Derivative</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D2</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="1">-</e>
        <e type="operand">16</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="operand">30</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">-</e>
        <e type="operand">16</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="operand">12</e>
        <e type="operand">h</e>
        <e type="operand">2</e>
        <e type="operator" args="2">^</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">2nd Derivative</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_int</e>
        <e type="operand">h</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operand">x</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">Integral Curve [antiderivative]</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_cumul</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operator" args="2">^</e>
        <e type="operator" args="2">*</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">:</e>
        <e type="operand" style="string">Cumulative Integration</e>
        <e type="operator" args="2">≡</e>
        <e type="operand">5</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="7">line</e>
      </input>
    </math>
  </region>
  <region id="5" left="27" top="405" width="491" height="383" color="#000000" bgColor="#ffffff" fontSize="10">
    <xyplot width="481" height="375" smoothing="false" points="100">
      <propertiessource index="1" sourcetype="PropertyGrid" />
      <grid gridcolor="LightGray" gridpattern="Solid" gridthickness="1" isxgrid="true" isygrid="true" />
      <xaxes xmin="-5" xmax="5" xtick="2.5" numberformat="General" decimalplaces="3" />
      <yaxes ymin="-2" ymax="2" ytick="1" numberformat="General" decimalplaces="3" />
      <y2axes isy2axis="false" y2min="-1" y2max="1" y2tick="0.5" numberformat="General" decimalplaces="3" />
      <title2d title="Incremental analysis" titlefont="Times New Roman, 12pt, style=Bold" titlefontcolor="Black" />
      <xylabel labelfont="Arial, 10pt" labelfontcolor="Black" tickfont="Courier New, 10pt" tickfontcolor="Black" xlabel="x" ylabel="y" y2label="y2" />
      <legend isbordervisible="true" islegendvisible="false" legendbackcolor="White" legendbordercolor="Black" legendfont="Arial, 8pt" legendposition="NorthEast" textcolor="Black" />
      <traces>
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="Blue" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="Red" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="Green" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="Fuchsia" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
        <trace seriesname="" isy2data="false" isvisible="true" plotmethod="Lines" linecolor="DarkOrange" linethickness="1" linepattern="Solid" symbolsize="8" symboltype="None" symbolborderthickness="1" symbolbordercolor="Black" symbolfillcolor="White" />
      </traces>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D1</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D2</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_int</e>
        <e type="operand">0.5</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_cumul</e>
        <e type="operator" args="2">*</e>
        <e type="operand">5</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="7">sys</e>
      </input>
    </xyplot>
  </region>
  <region id="6" left="531" top="414" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="4.1354756877215" scale_y="1" scale_z="4.1354756877215" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">Si</e>
        <e type="operand">8</e>
        <e type="operand">8</e>
        <e type="function" args="1">Si</e>
        <e type="operand" style="string">+</e>
        <e type="operand">15</e>
        <e type="operand" style="string">red</e>
        <e type="operand">1</e>
        <e type="operand">5</e>
        <e type="function" preserve="true" args="7">mat</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="7" left="531" top="621" width="98" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math error="43" decimalPlaces="9">
      <input>
        <e type="operand">0.1</e>
        <e type="function" args="1">Si</e>
      </input>
      <result action="numeric">
        <e type="operand">#</e>
      </result>
    </math>
  </region>
  <region id="8" left="531" top="657" width="248" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <description active="true" position="Top" lang="eng">
        <p>Sanity [N = 40]</p>
      </description>
      <input>
        <e type="operand">0.1</e>
        <e type="function" args="1">Si</e>
        <e type="operand">0.099944461</e>
        <e type="operator" args="2">≡</e>
        <e type="operand" style="string">sanity</e>
        <e type="operator" args="2">≡</e>
      </input>
    </math>
  </region>
  <region id="9" left="531" top="711" width="240" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="4.1354756877215" scale_y="8.95430243255239" scale_z="37.0303000103259" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0">
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">Si</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">sys</e>
      </input>
    </plot>
  </region>
  <region id="10" left="27" top="909" width="94" height="31" color="#000000" bgColor="#ffe1e1" fontSize="14">
    <text lang="eng">
      <p bold="true">MedCalc</p>
    </text>
  </region>
  <region id="11" left="27" top="945" width="465" height="24" color="#000000" bgColor="#ffe1e1" fontSize="10">
    <text lang="eng">
      <p>https://www.medcalc.org/manual/sinintegral_function.php</p>
    </text>
  </region>
  <region id="12" left="18" top="1026" width="420" height="102" color="#000000" bgColor="#ebebeb" fontSize="10">
    <math decimalPlaces="4">
      <description active="true" position="Top" lang="spa">
        <p>Cumulative integation- Trapeze Method</p>
      </description>
      <input>
        <e type="operand">f</e>
        <e type="operand">a</e>
        <e type="operand">b</e>
        <e type="operand">N</e>
        <e type="function" args="4">NIntTrap</e>
        <e type="operand">h</e>
        <e type="operand">b</e>
        <e type="operand">a</e>
        <e type="operator" args="2">-</e>
        <e type="operand">N</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="2">:</e>
        <e type="operand">h</e>
        <e type="operand">2</e>
        <e type="operator" args="2">/</e>
        <e type="operand">a</e>
        <e type="function" args="1">f</e>
        <e type="operand">b</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">+</e>
        <e type="operand">2</e>
        <e type="operand">a</e>
        <e type="operand">k</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operand">k</e>
        <e type="operand">1</e>
        <e type="operand">N</e>
        <e type="operand">1</e>
        <e type="operator" args="2">-</e>
        <e type="function" preserve="true" args="4">sum</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="13" left="18" top="1161" width="295" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Si</e>
        <e type="operand">1</e>
        <e type="operator" args="1">-</e>
        <e type="operand">1</e>
        <e type="operand">100</e>
        <e type="function" args="4">NIntTrap</e>
      </input>
      <result action="numeric">
        <e type="operand">1.570763</e>
      </result>
    </math>
  </region>
  <region id="14" left="18" top="1224" width="227" height="31" color="#000000" bgColor="#80ffff" fontSize="14">
    <text lang="eng">
      <p bold="true">Isolate components </p>
    </text>
  </region>
  <region id="15" left="18" top="1269" width="91" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="function" args="1">Si</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="16" left="135" top="1269" width="84" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">h</e>
        <e type="operand">0.0001</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="17" left="18" top="1305" width="310" height="45" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D1</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">-</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="operand">2</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="operand">4</e>
        <e type="operand">h</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">/</e>
        <e type="operator" args="1">-</e>
        <e type="function" preserve="true" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="18" left="18" top="1350" width="373" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_int</e>
        <e type="operand">h</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operator" args="2">+</e>
        <e type="function" args="1">f</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">-</e>
        <e type="bracket">(</e>
        <e type="operator" args="2">*</e>
        <e type="operand">2</e>
        <e type="operand">x</e>
        <e type="function" args="1">f</e>
        <e type="operator" args="2">*</e>
        <e type="operator" args="2">+</e>
        <e type="bracket">(</e>
        <e type="operand">x</e>
        <e type="operator" args="2">*</e>
        <e type="function" preserve="true" args="1">eval</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="19" left="18" top="1386" width="356" height="158" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="2.47863319177429" scale_y="1" scale_z="2.47863319177429" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="0" transpose_y="0" transpose_z="0">
      <description active="true" position="Top" lang="eng">
        <p>Si(x), Deriv[Si(x)], Integral curve[Si(x)]</p>
      </description>
      <input>
        <e type="operand">x</e>
        <e type="function" args="1">Si</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">D1</e>
        <e type="operand">0.05</e>
        <e type="operand">x</e>
        <e type="operand">h</e>
        <e type="operand">f</e>
        <e type="function" args="3">h_int</e>
        <e type="operator" args="2">*</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="5">sys</e>
      </input>
    </plot>
  </region>
</regions>